-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix snapshots missing iterations #3557
Fix snapshots missing iterations #3557
Conversation
PR Check ResultsEcosystem✅ ecosystem check detected no changes. BenchmarkLinux
Windows
|
5557c2a
to
006a96f
Compare
Hmm, this may have the potential to confuse, since the diagnostics that are generated after the first iteration will contain locations that don't map to the input file (assuming the input file is changed via autofix). Is there an example rule or set of rules for which we missed something before, but have improved diagnostic coverage after this change? |
|
006a96f
to
838832a
Compare
---
source: crates/ruff/src/rules/pydocstyle/mod.rs
expression: diagnostics
---
- - kind:
name: NewLineAfterLastParagraph
body: Multi-line docstring closing quotes should be on a separate line
suggestion: Move closing quotes to new line
fixable: true
location:
row: 2
column: 4
end_location:
row: 3
column: 72
fix:
content: "\n "
location:
row: 3
column: 69
end_location:
row: 3
column: 69
parent: ~
- kind:
name: EndsInPeriod
body: First line should end with a period
suggestion: Add period
fixable: true
location:
row: 2
column: 4
end_location:
row: 3
column: 72
fix:
content: "."
location:
row: 3
column: 69
end_location:
row: 3
column: 69
parent: ~
- - - kind:
- name: NewLineAfterLastParagraph
- body: Multi-line docstring closing quotes should be on a separate line
- suggestion: Move closing quotes to new line
- fixable: true
- location:
- row: 2
- column: 4
- end_location:
- row: 4
- column: 8
- fix:
- content: "\n "
- location:
- row: 4
- column: 5
- end_location:
- row: 4
- column: 5
- parent: ~ |
I do not know why the CI is failing, the tests are passing locally. |
The failing tests are gated behind the You can run them locally with
@charliermarsh I wonder if we should remove the feature and instead rely on |
4163f04
to
fb9e1f9
Compare
fb9e1f9
to
c2c8934
Compare
@charliermarsh, do you want to merge this PR or should we close it? |
c2c8934
to
9dc20ec
Compare
@JonathanPlasse - I do see the value, but thinking on it... I'd prefer to close, I'm just worried about making the snapshots more difficult to follow since they now represent a sequence of iterative changes. I'm sorry for not saying so sooner. |
I understand, no problem. I could understand better how the tests work. |
Until now the snapshots only contained the first iteration of diagnostics.
This PR adds the diagnostics from the other iterations.
The duplicates between the iterations are removed.